Skip to content

London | 26-ITP-May | Zadri Abdule | Sprint 1 | Form Control#1223

Open
Zadri415 wants to merge 13 commits intoCodeYourFuture:mainfrom
Zadri415:feature/form-controls
Open

London | 26-ITP-May | Zadri Abdule | Sprint 1 | Form Control#1223
Zadri415 wants to merge 13 commits intoCodeYourFuture:mainfrom
Zadri415:feature/form-controls

Conversation

@Zadri415
Copy link
Copy Markdown

@Zadri415 Zadri415 commented May 5, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Added required input fields for name and email with validation
Added T-shirt colour radio buttons
Added size dropdown menu
Fixed HTML validator

@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 1a5437f
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/69fa11c30b89fd000893a167
😎 Deploy Preview https://deploy-preview-1223--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 86 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Zadri415 Zadri415 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Onboarding The name of the module. labels May 5, 2026
@Poonam-raj Poonam-raj self-requested a review May 11, 2026 10:57
@Poonam-raj Poonam-raj added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 11, 2026
Comment thread Form-Controls/index.html
Comment on lines +19 to +20
<label for="name">Full Name:</label><br>
<input type="text" id="name" name="name" mainlength="2" pattern=".*\S.*" title="Name must be 2 characters cannot contain only spaces" required><br>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This minimum character length wasn't working for me - I was able to submit a form with a name of "P", please take another look at this

Comment thread Form-Controls/index.html
<div>
<label for="size">Select Size:</label>
<select id="size" name="size" required>
<option value="">--Select a Size--</option>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good use of a initial default value

Comment thread Form-Controls/index.html
Comment on lines +54 to +63
<label for="size">Select Size:</label>
<select id="size" name="size" required>
<option value="">--Select a Size--</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select><br><br>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could wrap this in a fieldset tag

Comment thread Form-Controls/index.html
Comment on lines +30 to +52
<fieldset>
<legend>Choose a T-shirt Color:</legend>

<label>
<input type="radio" name="color" value="red" required>
Red
</label>


<label>
<input type="radio" name="color" value="blue" required>
Blue
</label>


<label>
<input type="radio" name="color" value="green" required>
Green
</label>

</fieldset>

<!-- Size -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing here is odd. I would be careful to either use a linter like Prettier to format your code before you submit or make sure you take out unnecessary spaces before you commit code to a repo

Comment thread Form-Controls/index.html
Comment on lines +30 to +50
<fieldset>
<legend>Choose a T-shirt Color:</legend>

<label>
<input type="radio" name="color" value="red" required>
Red
</label>


<label>
<input type="radio" name="color" value="blue" required>
Blue
</label>


<label>
<input type="radio" name="color" value="green" required>
Green
</label>

</fieldset>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For your "name" tags here, I would consider being more descriptive for future projects. If this represents data we want to be clear what the data is - here, colour alone is ok for now, but if we add other colour options (e.g. colour of the design on the t shirt, not just the t shirt itself) we might need this name tag to be "tshirt-colour"

Copy link
Copy Markdown
Contributor

@Poonam-raj Poonam-raj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I ran this form through the HTML validator I got the following

Error: Attribute mainlength not allowed on element input at this point.

From line 20, column 11; to line 20, column 153

      <input type="text" id="name" name="name" mainlength="2" pattern=".*\S.*" title="Name must be 2 characters cannot contain only spaces" required><br>↩

Which might be contributing to the issue around minimum length I noted in the "Name" input

A strong form otherwise, I left some comments about future thoughts you might want to have if you made a form for a bigger project. But the only thing that needs fixing is the Name input

@Poonam-raj Poonam-raj added 🏕 Priority Mandatory This work is expected 🐂 Size Medium 1-4 hours 📅 Sprint 1 Assigned during Sprint 1 of this module Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels May 11, 2026
@Poonam-raj Poonam-raj added Submit:PR This work is submitted by creating a PR against CodeYourFuture's fork of this repo. Core This is a core task and should be completed by all trainees and removed 🏕 Priority Mandatory This work is expected 🐂 Size Medium 1-4 hours Submit:PR This work is submitted by creating a PR against CodeYourFuture's fork of this repo. Core This is a core task and should be completed by all trainees labels May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Onboarding The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants